Schedule late_init if component have on_input

This commit is contained in:
Insality 2022-12-03 17:43:08 +02:00
parent 6d75d61fd5
commit 0368260d16

View File

@ -252,7 +252,7 @@ function DruidInstance.new(self, component, ...)
if instance.init then
instance:init(...)
end
if instance.on_late_init then
if instance.on_late_init or (not self.input_inited and instance.on_input) then
schedule_late_init(self)
end