Skip to content

Commit

Permalink
Support empty string for default state machines
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhonnyg committed Nov 13, 2024
1 parent d638814 commit 7e422a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defold-rive/editor/src/rive.clj
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@
(property default-state-machine g/Str (default (protobuf/default rive-model-pb-class :default-state-machine))
(dynamic error (g/fnk [_node-id rive-state-machine-ids default-state-machine rive-scene]
(validate-model-default-state-machine _node-id rive-scene rive-state-machine-ids default-state-machine)))
(dynamic edit-type (g/fnk [rive-state-machine-ids] (properties/->choicebox rive-state-machine-ids))))
(dynamic edit-type (g/fnk [rive-state-machine-ids] (properties/->choicebox (cons "" rive-state-machine-ids)))))

(property artboard g/Str (default (protobuf/default rive-model-pb-class :artboard))
(dynamic error (g/fnk [_node-id rive-artboards artboard rive-scene]
Expand Down

0 comments on commit 7e422a3

Please sign in to comment.