Skip to content

Commit

Permalink
RenderProps: fix null access when lastRenderProps isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoVgr committed Oct 18, 2024
1 parent c646c19 commit 6dddd33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hide/comp/SceneEditor.hx
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ class RenderPropsPopup extends Popup {

var fullPath = [];
var cur : hrt.prefab.Prefab = lastRenderProps;
var renderPropsSource = lastRenderProps.shared.parentPrefab?.source ?? "inline";
var renderPropsSource = lastRenderProps?.shared.parentPrefab?.source ?? "inline";
renderPropsSource = StringTools.replace(renderPropsSource, "/", "<wbr>/<wbr>");
while (cur != null) {
fullPath.unshift(cur.getAbsPath());
Expand Down

0 comments on commit 6dddd33

Please sign in to comment.