Skip to content

Conversation

@vladtepesch
Copy link

@vladtepesch vladtepesch commented Dec 22, 2025

properties that are exported with the PROPERTY_USAGE_INTERNAL can be hidden by removing the newly added flag (default=on - to mimik current behaviour) :
grafik

this implements the simple solution of #37

| PROPERTY_USAGE_GROUP
| PROPERTY_USAGE_SUBGROUP
| PROPERTY_USAGE_SCRIPT_VARIABLE
| PROPERTY_USAGE_INTERNAL):
Copy link
Author

@vladtepesch vladtepesch Dec 22, 2025

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):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# ignore internal marked properties if not enabled to include them
# Ignore internal marked properties if not enabled to include them

Comment on lines +30 to +35
) var usage_flags: int = ( PROPERTY_USAGE_EDITOR
| PROPERTY_USAGE_CATEGORY
| PROPERTY_USAGE_GROUP
| PROPERTY_USAGE_SUBGROUP
| PROPERTY_USAGE_SCRIPT_VARIABLE
| PROPERTY_USAGE_INTERNAL):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
) 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.

Copy link
Author

@vladtepesch vladtepesch Dec 23, 2025

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants