Commit 36c826b
committed
[Sofa.Core] Add BaseLink forwarding accessor.
Currently accessing:
```python
forcefield.mstate.position
```
does not work because forcefield.mstate is a link and thus a link does not have a "position" field.
The working version consist to write ```object.mstate.getLinkedBase().position``` which is very cumbersome to write.
This PR adds support for attribute forwarding through link allowing the firt approach.1 parent 443b93a commit 36c826b
File tree
2 files changed
+34
-1
lines changed- bindings/Sofa
- src/SofaPython3/Sofa/Core
- tests/Core
2 files changed
+34
-1
lines changedLines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
70 | 94 | | |
71 | 95 | | |
72 | 96 | | |
| |||
89 | 113 | | |
90 | 114 | | |
91 | 115 | | |
92 | | - | |
93 | 116 | | |
94 | 117 | | |
95 | 118 | | |
96 | 119 | | |
| 120 | + | |
| 121 | + | |
97 | 122 | | |
98 | 123 | | |
99 | 124 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
98 | 106 | | |
99 | 107 | | |
100 | 108 | | |
| |||
0 commit comments