Skip to content

Commit c1f8b81

Browse files
committed
Fixed missing support for based_attribute.
1 parent 60729e9 commit c1f8b81

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

Diff for: addons/source-python/packages/source-python/entities/classes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ def _get_server_class(self, class_name, datamap):
359359
attribute = method(
360360
Key.as_attribute_type(self, data['type']),
361361
offset,
362-
data.get('doc')
362+
data.get('doc'),
363+
Key.as_int(self, data.get('length', 0)),
363364
)
364365

365366
# Assign the attribute to the instance

0 commit comments

Comments
 (0)