realXtend / tundra

realXtend Tundra SDK, a 3D virtual world application platform.
www.realxtend.org
Apache License 2.0
84 stars 70 forks source link

Hiding Transform Gizmo does not restore TextureMissing-material. #247

Open juj opened 13 years ago

juj commented 13 years ago
  1. Import an Entity to the scene with a Mesh component.
  2. Set that Mesh use a Material which refers to a texture that does not exist. Observe that the Mesh is shown in yellow-pink checkerboard, as intended.
  3. Select that Entity in the EC Editor, so that the TransformGizmo appears. The way the TransformGizmo works is that it overrides the original material with Highlight.material, to show the users a visual cue of what the user has selected. Observe that the previously shown checkerboard material turns into this highlight material.
  4. Deselect editing the object by closing the EC Editor window.

Expected: The Transform Gizmo should remove the Highlight.material it had added, and restore the original yellow-pink checkerboard material. Observed: The Transform Gizmo either leaves the Highlight.material on the mesh, or it removes the highlight and shows the mesh in a grayscale material.

pavlovski commented 11 years ago

I examined the bug and tried to reproduce it. When the MissingTexture material is set on a mesh and I select that mesh in EC Editor only the transform gizmo is shown(highlight material does not show). So, deselecting object leaves missing texture material (the bug might be fixed with the previous co-relating material setting).

The only bug that I sometimes run into is when applying material (which refers to a texture that does not exist), when I close EC Editor the MissingTexture is removed.

But, again this bug occurs occasionally and I can't really find where the problem is within Tundra.

Any thoughts about this?