sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

ControlObjectWidget NRE when trying to construct a ControlWidget with no parameterless constructor

Open DevulTj opened this issue 1 year ago • 1 comments
trafficstars

If you're trying to show a class with some [KeyProperty] properties, if it doesn't have a parameterless constructor it'll throw, and break the inspector window. Needs to fail safely.

image

DevulTj avatar Feb 07 '24 14:02 DevulTj

Added some safety here so it doesn't break the inspector, though we should probably be ducking out of creating the ControlWidget though before this point..

DevulTj avatar Feb 07 '24 22:02 DevulTj