mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Anim Editor: Added smart angle property to particles
This commit is contained in:
@@ -203,6 +203,14 @@ module Compiler
|
||||
particle[:name]) + "\n" + FileLineData.linereport
|
||||
end
|
||||
end
|
||||
# Ensure that only particles that have an entity as a focus can have a
|
||||
# smart angle
|
||||
if (particle[:angle_override] || :none) != :none &&
|
||||
!GameData::Animation::FOCUS_TYPES_WITH_USER.include?(particle[:focus]) &&
|
||||
!GameData::Animation::FOCUS_TYPES_WITH_TARGET.include?(particle[:focus])
|
||||
raise _INTL("Particle \"{1}\" can't set \"AngleOverride\" if its focus isn't a specific thing(s).",
|
||||
particle[:name]) + "\n" + FileLineData.linereport
|
||||
end
|
||||
# Ensure that a particle with a user's/target's graphic doesn't have any
|
||||
# :frame commands
|
||||
if !["User", "Target", "SE"].include?(particle[:name]) &&
|
||||
|
||||
Reference in New Issue
Block a user