summaryrefslogtreecommitdiff
path: root/methods.py
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2022-09-02 22:31:56 +0200
committerRaul Santos <raulsntos@gmail.com>2022-09-04 20:39:37 +0200
commita91a3d01f849ba3a7c1615003f8f11ca824d3d58 (patch)
treec734f4039cc07856cafba30daf9092d10f2eb314 /methods.py
parent33b4153764980eaaeb11e74d6ed4a158136287e4 (diff)
C#: Create script instance of reloaded scripts even if they're not tools
Scripts that are instantiated at some point will always be recreated if they ever become placeholders to prevent non-tool scripts instantiated manually by users to become placeholders, if they do become placeholders due to errors that prevent instantiation (such as a missing parameterless constructor) these scripts will also be recreated replacing the temporary placeholder. If a script is marked as a tool but becomes a non-tool script in a rebuild, the script will become a placeholder and will no longer be considered applicable to be replaced by an instance since the user explicitly removed the Tool attribute.
Diffstat (limited to 'methods.py')
0 files changed, 0 insertions, 0 deletions