mirror of
https://github.com/Heretek-AI/GDevelop-Heretek.git
synced 2026-10-12 02:02:42 +00:00
Rework objects recycling to be opt-in with a reinitialize method
Only show in developer changelog
This commit is contained in:
@@ -22,11 +22,8 @@ gdjs.TextEntryRuntimeObject = function(runtimeScene, textEntryObjectData)
|
||||
/** @type {boolean} */
|
||||
this._activated = true;
|
||||
|
||||
if (this._renderer)
|
||||
gdjs.TextEntryRuntimeObjectRenderer.call(this._renderer, this, runtimeScene);
|
||||
else
|
||||
/** @type {gdjs.TextEntryRuntimeObjectRenderer} */
|
||||
this._renderer = new gdjs.TextEntryRuntimeObjectRenderer(this, runtimeScene);
|
||||
/** @type {gdjs.TextEntryRuntimeObjectRenderer} */
|
||||
this._renderer = new gdjs.TextEntryRuntimeObjectRenderer(this, runtimeScene);
|
||||
|
||||
// *ALWAYS* call `this.onCreated()` at the very end of your object constructor.
|
||||
this.onCreated();
|
||||
|
||||
Reference in New Issue
Block a user