Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm reporting a bug.
#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


Messages In This Thread
I'm reporting a bug. - by twocomet - Yesterday, 05:44 AM
RE: I'm reporting a bug. - by josemendez - Yesterday, 12:08 PM
RE: I'm reporting a bug. - by josemendez - Yesterday, 12:21 PM