fix(script): deselect individual properties via Property.selected=false (#548)

This commit is contained in:
Nigel Ihza Firdausy
2026-10-10 15:58:22 +07:00
parent 813c7c4650
commit 4bc619b010
3 changed files with 46 additions and 1 deletions
+3 -1
View File
@@ -574,7 +574,9 @@ PropertyBase.prototype = {
return false;
},
set selected(v) {
if (v) __call("prop.select", { comp: this.__layer.__comp, layer: this.__layer.__id, prop: this.__uid, add: true });
var ref = { comp: this.__layer.__comp, layer: this.__layer.__id, prop: this.__uid };
if (v) __call("prop.select", { comp: ref.comp, layer: ref.layer, prop: ref.prop, add: true });
else __call("prop.deselect", ref);
},
propertyGroup: function (n) {
var p = this;