Browse Source

RenderProps: fix null access when lastRenderProps isn't set

lviguier 11 months ago
parent
commit
6dddd3340e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hide/comp/SceneEditor.hx

+ 1 - 1
hide/comp/SceneEditor.hx

@@ -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());