Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | RyuShai |
1, i create abstractScene name : player - it has Path2D as child
from abstractionPlayer i created 3 player by “New Inhertied Scene”: black, red, yellow
Black and Red still inheritance from abstractPlayer
Yellow detach from abstractionPlayer by “Clear Inheritance”
now add 3 player to test scene
button “addPoint” will add data to $BlackPlayer.PlayerPath(Path2D).curve by $PlayerName.PlayerPath(Path2D).curve.add_point(some data, doesn’t matter)
expect:
BlackPlayer.PlayerPath.curve.get_point_count() = 1
RedPlayer.PlayerPath.curve.get_point_count() = 0
Yellow.PlayerPath.curve.get_point_count() =0
actual:
BlackPlayer.PlayerPath.curve.get_point_count() = 1
RedPlayer.PlayerPath.curve.get_point_count() = 1
Yellow.PlayerPath.curve.get_point_count() =0
Question:
1, is this bug ?
2, if not, why red had data (point) in curve while i add it only to black
3, how add data to black only without “Clear Inheritance” because if i update abstractPlayer, Yellow will not get update