-
Notifications
You must be signed in to change notification settings - Fork 7
add possibility to hide INTERNAL marked properties #38
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
base: master
Are you sure you want to change the base?
Conversation
| | PROPERTY_USAGE_GROUP | ||
| | PROPERTY_USAGE_SUBGROUP | ||
| | PROPERTY_USAGE_SCRIPT_VARIABLE | ||
| | PROPERTY_USAGE_INTERNAL): |
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.
I would tend to not include the PROPERTY_USAGE_INTERNAL flag in the default (and hide by default) but I wanted to not change the current behaviour
| return false | ||
|
|
||
| # ignore internal marked properties if not enabled to include them | ||
| if (usage & PROPERTY_USAGE_INTERNAL) and not (usage_flags & PROPERTY_USAGE_INTERNAL): |
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.
| if (usage & PROPERTY_USAGE_INTERNAL) and not (usage_flags & PROPERTY_USAGE_INTERNAL): | |
| if usage & PROPERTY_USAGE_INTERNAL and not (usage_flags & PROPERTY_USAGE_INTERNAL): |
| if usage_flags & PROPERTY_USAGE_EDITOR and not (usage & PROPERTY_USAGE_EDITOR): | ||
| return false | ||
|
|
||
| # ignore internal marked properties if not enabled to include them |
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.
| # ignore internal marked properties if not enabled to include them | |
| # Ignore internal marked properties if not enabled to include them |
| ) var usage_flags: int = ( PROPERTY_USAGE_EDITOR | ||
| | PROPERTY_USAGE_CATEGORY | ||
| | PROPERTY_USAGE_GROUP | ||
| | PROPERTY_USAGE_SUBGROUP | ||
| | PROPERTY_USAGE_SCRIPT_VARIABLE | ||
| | PROPERTY_USAGE_INTERNAL): |
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.
| ) var usage_flags: int = ( PROPERTY_USAGE_EDITOR | |
| | PROPERTY_USAGE_CATEGORY | |
| | PROPERTY_USAGE_GROUP | |
| | PROPERTY_USAGE_SUBGROUP | |
| | PROPERTY_USAGE_SCRIPT_VARIABLE | |
| | PROPERTY_USAGE_INTERNAL): | |
| ) var usage_flags: int = var usage_flags: int = PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_CATEGORY | PROPERTY_USAGE_GROUP | PROPERTY_USAGE_SUBGROUP | PROPERTY_USAGE_SCRIPT_VARIABLE: |
We have to leave the old behavior. PROPERTY_USAGE_INTERNAL should remain disabled by default.
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.
We have to leave the old behavior. PROPERTY_USAGE_INTERNAL should remain disabled by default.
but then the flag has to be enabled by default as in my proposal (see my above comment)
properties that are exported with the

PROPERTY_USAGE_INTERNALcan be hidden by removing the newly added flag (default=on - to mimik current behaviour) :this implements the simple solution of #37