Skip to content

Commit b45f8e6

Browse files
author
invincibleqc
committed
Fixed typing issues for excluded properties.
1 parent b46c355 commit b45f8e6

File tree

1 file changed

+3
-2
lines changed
  • addons/source-python/packages/source-python/entities

1 file changed

+3
-2
lines changed

addons/source-python/packages/source-python/entities/classes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
# Source.Python Imports
2020
# Basetypes
21+
from basetypes import SendPropFlags
2122
from basetypes import SendPropTypes
2223
# Core
2324
from core import GAME_NAME
@@ -338,8 +339,8 @@ def _find_properties(self, table, base_name='', base_offset=0):
338339
# Loop through all properties of the given table
339340
for prop in table:
340341

341-
# Is the property a base class?
342-
if prop.name == 'baseclass':
342+
# Is the property a base class or excluded?
343+
if prop.name == 'baseclass' or prop.flags & SendPropFlags.EXCLUDE:
343344
continue
344345

345346
# Get the name of the property using the given base name

0 commit comments

Comments
 (0)