mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Minor formatting.
This commit is contained in:
parent
c36e0a93ed
commit
594e287721
@ -1,4 +1,4 @@
|
|||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Spine Runtimes Software License v2.5
|
* Spine Runtimes Software License v2.5
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013-2016, Esoteric Software
|
* Copyright (c) 2013-2016, Esoteric Software
|
||||||
|
|||||||
@ -188,8 +188,8 @@ namespace Spine.Unity.Editor {
|
|||||||
|
|
||||||
Preferences.Load();
|
Preferences.Load();
|
||||||
|
|
||||||
var assets = AssetDatabase.FindAssets("t:script SpineEditorUtilities");
|
string[] assets = AssetDatabase.FindAssets("t:script SpineEditorUtilities");
|
||||||
var assetPath = AssetDatabase.GUIDToAssetPath(assets[0]);
|
string assetPath = AssetDatabase.GUIDToAssetPath(assets[0]);
|
||||||
editorPath = Path.GetDirectoryName(assetPath).Replace("\\", "/");
|
editorPath = Path.GetDirectoryName(assetPath).Replace("\\", "/");
|
||||||
editorGUIPath = editorPath + "/GUI";
|
editorGUIPath = editorPath + "/GUI";
|
||||||
|
|
||||||
@ -2121,7 +2121,7 @@ namespace Spine.Unity.Editor {
|
|||||||
float firstScale = 0.08f * scale;
|
float firstScale = 0.08f * scale;
|
||||||
Handles.DrawSolidDisc(pos, normal, firstScale);
|
Handles.DrawSolidDisc(pos, normal, firstScale);
|
||||||
const float Thickness = 0.03f;
|
const float Thickness = 0.03f;
|
||||||
float secondScale = firstScale - (Thickness * SpineHandles.handleScale * scale);
|
float secondScale = firstScale - (Thickness * SpineHandles.handleScale * scale);
|
||||||
|
|
||||||
if (secondScale > 0f) {
|
if (secondScale > 0f) {
|
||||||
Handles.color = new Color(0.3f, 0.3f, 0.3f, 0.5f);
|
Handles.color = new Color(0.3f, 0.3f, 0.3f, 0.5f);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user