Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Duplicate rod is inheriting attached particle from original
#4
(20-07-2021, 01:24 PM)willmedeiros Wrote: Yes, it's a prefab and I believe it's the same bug, because I tested it after getting the prefab, changing the length and changing the particle names, then I went back to the original names and redefined it in the "particle group" of the attachment and it worked, me seems to be this bug

If that's the case, go to ObiParticleAttachmentEditor.cs, line 109, add a call to PrefabUtility.RecordPrefabInstancePropertyModifications(). Should look like this:


Quote:void OnParticleGroupSelected(object index)
{
Undo.RecordObject(attachment, "Set particle group");
attachment.particleGroup = index as ObiParticleGroup;
PrefabUtility.RecordPrefabInstancePropertyModifications(attachment);
}

After this change, select the offending attachment and re-select the particle group (click the particle group dropdown, and just select the same particle group). That should fix the issue.

Let me know how it goes!
Reply


Messages In This Thread
RE: Duplicate rod is inheriting attached particle from original - by josemendez - 20-07-2021, 01:27 PM