We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eced2c8 commit 8a0b2acCopy full SHA for 8a0b2ac
UnityParticleSystemPreview/Assets/ParticleSystemPreview/Editor/ParticleSystemPreview.cs
@@ -143,11 +143,6 @@ public void SetEditor(Editor editor)
143
144
public override void Initialize(UnityEngine.Object[] targets)
145
{
146
- if (s_Styles == null)
147
- {
148
- s_Styles = new Styles();
149
- }
150
-
151
base.Initialize(targets);
152
153
if (m_CacheEditor == null)
@@ -221,6 +216,11 @@ public override GUIContent GetPreviewTitle()
221
216
222
217
public override void OnPreviewSettings()
223
218
219
+ if (s_Styles == null)
220
+ {
+ s_Styles = new Styles();
+ }
+
224
InitPreview();
225
if (m_PreviewUtility == null)
226
0 commit comments