mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Do not force order of the placeholder, allow it to be None
This commit is contained in:
parent
edee279f15
commit
2befe843dc
1 changed files with 1 additions and 6 deletions
|
|
@ -1146,7 +1146,7 @@ class PlaceholderPlugin(object):
|
|||
)
|
||||
|
||||
def register_on_depth_processed_callback(
|
||||
self, placeholder, callback, order=0
|
||||
self, placeholder, callback, order=None
|
||||
):
|
||||
self.register_callback(
|
||||
placeholder,
|
||||
|
|
@ -1156,11 +1156,6 @@ class PlaceholderPlugin(object):
|
|||
)
|
||||
|
||||
def register_callback(self, placeholder, topic, callback, order=None):
|
||||
|
||||
if order is None:
|
||||
# Match placeholder order by default
|
||||
order = placeholder.order
|
||||
|
||||
self.log.debug("Registering '%s' callback: %s", topic, callback)
|
||||
self.builder.event_system.add_callback(topic, callback, order=order)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue