Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Make vertex paint experimental #216

Merged

Conversation

jmickle66666666
Copy link
Contributor

Since the vertex paint mode is not finished, and blocking new releases, I have moved it to a new section in the SabreCSG preferences called "Experimental".

This allows the feature to still exist in SabreCSG but be clear for the users that it is still under development.

@@ -116,6 +116,14 @@ public static void PreferencesGUI()
SceneView.RepaintAll();
}

EditorGUILayout.Space();
EditorGUI.indentLevel = 1;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifying indent level directly like this is probably bad practice, I'd suggest instead using IndentLevelScope

@@ -347,6 +347,54 @@ public static GUIStyle FormatStyle(Color textColor, int fontSize, FontStyle font
return value;
}

public static T DrawPartialEnumGrid<T>(T value, T[] enabled, params GUILayoutOption[] options) where T : struct, IConvertible
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A /// summary would be handy here indicating how this differs from DrawEnumGrid

Copy link
Owner

@sabresaurus sabresaurus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, left some minor feedback

@jmickle66666666
Copy link
Contributor Author

Thanks for the feedback! Fixed up those two things.

@Henry00IS Henry00IS merged commit 0f6ab8d into sabresaurus:master Feb 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants