Jump to content
Sign in to follow this  
superstar

Radius shortcut causes freezing with errors when Brush Radius Min/Max are identical

Recommended Posts

Hi,

 

Polybrush 0.9.6b0

 

Brush Settings

 

When using the "Shortcut: Control (Command) + Mouse Wheel" in conjunction while the Brush Radius Min/Max are set to be identical, Unity freezes for a chunk of time as it tries to display error messages.  Using the shortcut when the min/max are identical is usually by accident, as I can forget that I had locked the min/max to be the same temporarily.

 

At the bottom of this message, I have pasted a snippet of the error message.

 

The following are values shown in the Polybrush tab, after error messages completely displays:

 

     Brush Radius Min   0.5

     Brush Radius Max  0.5

     Radius   NaN

 

That "NaN" value above was automatically set by Polybrush after errors were triggered.

 

Can you verify if this is occurring, or if I'm just mouse wheel happy?

 

 

Thanks

 

 

Error Messages

 

curveT >= GetRange ().first && curveT <= GetRange ().second
UnityEngine.AnimationCurve:Evaluate(Single)
Polybrush.z_SceneUtility:GetWeightedVertices(z_BrushTarget, z_BrushSettings) (at Assets/ProCore/Polybrush/Code/Editor/Utility/z_SceneUtility.cs:144)
Polybrush.z_Editor:EditableObjectRaycast(Ray, z_EditableObject) (at Assets/ProCore/Polybrush/Code/Editor/Interface/z_Editor.cs:692)
Polybrush.z_Editor:UpdateBrush(Vector2, Boolean) (at Assets/ProCore/Polybrush/Code/Editor/Interface/z_Editor.cs:617)
Polybrush.z_Editor:ScrollBrushSettings(Event) (at Assets/ProCore/Polybrush/Code/Editor/Interface/z_Editor.cs:749)
Polybrush.z_Editor:OnSceneGUI(SceneView) (at Assets/ProCore/Polybrush/Code/Editor/Interface/z_Editor.cs:482)
UnityEditor.DockArea:OnGUI()
 
curveT >= m_Curve[lhs].time && curveT <= m_Curve[rhs].time
UnityEngine.AnimationCurve:Evaluate(Single)
Polybrush.z_SceneUtility:GetWeightedVertices(z_BrushTarget, z_BrushSettings) (at Assets/ProCore/Polybrush/Code/Editor/Utility/z_SceneUtility.cs:144)
Polybrush.z_Editor:EditableObjectRaycast(Ray, z_EditableObject) (at Assets/ProCore/Polybrush/Code/Editor/Interface/z_Editor.cs:692)
Polybrush.z_Editor:UpdateBrush(Vector2, Boolean) (at Assets/ProCore/Polybrush/Code/Editor/Interface/z_Editor.cs:617)
Polybrush.z_Editor:ScrollBrushSettings(Event) (at Assets/ProCore/Polybrush/Code/Editor/Interface/z_Editor.cs:749)
Polybrush.z_Editor:OnSceneGUI(SceneView) (at Assets/ProCore/Polybrush/Code/Editor/Interface/z_Editor.cs:482)
UnityEditor.DockArea:OnGUI()
 
...
...
... (999+)
 
 
 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×