Browse Source

[emitter] Fix edit refresh

Clément Espeute 4 months ago
parent
commit
7b6c113ec3
1 changed files with 1 additions and 2 deletions
  1. 1 2
      hrt/prefab/fx/Emitter.hx

+ 1 - 2
hrt/prefab/fx/Emitter.hx

@@ -1967,8 +1967,7 @@ class Emitter extends Object3D {
 		super.edit(ctx);
 
 		function refresh() {
-			ctx.properties.clear();
-			this.edit(ctx);
+			ctx.rebuildProperties();
 		}
 
 		function onChange(?pname: String) {