Skip to content

Null reference when draging custom gltf from assetbrowser to scene#236

Open
domanek wants to merge 1 commit intoRefactoringfrom
ref/fix/dragging-gltf-into-scene-nullref
Open

Null reference when draging custom gltf from assetbrowser to scene#236
domanek wants to merge 1 commit intoRefactoringfrom
ref/fix/dragging-gltf-into-scene-nullref

Conversation

@domanek
Copy link
Contributor

@domanek domanek commented Nov 28, 2023

Problem: Primitive shapes with no "GltfContainer" or "GLTFShape" were calling the "Deactivate" method from the "GltfShapeVisuals" even though the "_currentModelObject" was null. Primitive shapes should be handled in "InitializePrimitiveShapeComponent".

Fix: Checking _currentModelObject null state and return

Problem: Primitive shapes with no "GltfContainer" or "GLTFShape" were calling the "Deactivate" method from the "GltfShapeVisuals" even though the "_currentModelObject" was null. Primitive shapes should be handled in "InitializePrimitiveShapeComponent".

Fix: Checking _currentModelObject null state and return
@domanek domanek requested a review from cblech November 28, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant