Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm reporting a bug.
#1
   
In the case of this mesh, it is rotated on the floor from the beginning.

   
If you rotate it, it returns to normal.

   
The selection function works fine.

   
Now we go into painting mode to edit the mass.

   
Painting can never be done on a standing area.
Painting is only possible on empty spaces where they lie before being rotated.
Reply
#2
Hi!

Thanks for reporting this! could reproduce the issue, will share a patch as soon as possible.

kind regards,
Reply
#3
Open up ObiPaintBrushEditorTool.cs. At the very end of the file (near line 117) you'll find this method:

Code:
public override void OnSceneGUI(SceneView view)
        {
            if (Camera.current != null)
            {
                paintBrush.raycastTarget = meshBasedEditor.sourceMesh;
                paintBrush.DoBrush(editor.blueprint.positions);
            }
        }

Modify it by adding the following two lines, like so:

Code:
public override void OnSceneGUI(SceneView view)
        {
            if (Camera.current != null)
            {
                // Add these lines:
                var blueprint = meshBasedEditor.blueprint as ObiMeshBasedActorBlueprint;
                paintBrush.raycastTransform = blueprint != null ? Matrix4x4.TRS(Vector3.zero, blueprint.rotation, blueprint.scale) : Matrix4x4.identity;

                paintBrush.raycastTarget = meshBasedEditor.sourceMesh;
                paintBrush.DoBrush(editor.blueprint.positions);
            }
        }

That should fix the problem.

Let me know if I can be of further help,

kind regards
Reply