-
-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change: Use selected group as parent when creating a new group. #7224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it works as intended. The livery copying looks a bit strange to me (I'd expect it to inherit rather than copy) but I trust PeterN to extend his own code in the most appropriate way.
Great idea. I also expected to inherit liveries instead of copying them. |
Inheritance is set by the in_use flag, in the case of inheritance colour1/colour2 are set to the parent. This is because when using 2cc mode, the two colours can actually inherit from different parent groups independently, but GetEngineLivery returns a Livery struct, not two colours. When changing a parent livery, PropagateChildLivery() applies that change to all the group's children recursively. Turns out there's some left over code in GetEngineLivery that traverses parents when it's not actually necessary. Oops. |
Okay, I think it should check the group ID exists and return an error if not, instead of silently creating a top-level group. Going to fix it :-) EDIT: Other functions also do it this way, so for consistency I'll leave this as is and then change them all together, possibly. |
… correctly. When drag and drop a vehicle into an empty slot in the vehicle group window it tries to create the new group as the subgroup of the first group (GroupID = 0). This is failing if the dragged vehicle's type is different than the first group's vehicle type.
…correctly. When drag and drop a vehicle into an empty slot in the vehicle group window it tries to create the new group as the subgroup of the first group (GroupID = 0). This is failing if the dragged vehicle's type is different than the first group's vehicle type.
When drag and drop a vehicle into an empty slot in the vehicle group window it tries to create the new group as the subgroup of the first group (GroupID = 0). This is failing if the dragged vehicle's type is different than the first group's vehicle type.
…correctly. When drag and drop a vehicle into an empty slot in the vehicle group window it tries to create the new group as the subgroup of the first group (GroupID = 0). This is failing if the dragged vehicle's type is different than the first group's vehicle type.
When drag and drop a vehicle into an empty slot in the vehicle group window it tries to create the new group as the subgroup of the first group (GroupID = 0). This is failing if the dragged vehicle's type is different than the first group's vehicle type.
…correctly. When drag and drop a vehicle into an empty slot in the vehicle group window it tries to create the new group as the subgroup of the first group (GroupID = 0). This is failing if the dragged vehicle's type is different than the first group's vehicle type.
No description provided.