17-10-2024, 12:21 PM
(This post was last modified: 17-10-2024, 12:21 PM by josemendez.)
Open up ObiPaintBrushEditorTool.cs. At the very end of the file (near line 117) you'll find this method:
Modify it by adding the following two lines, like so:
That should fix the problem.
Let me know if I can be of further help,
kind regards
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