Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
SMTK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Ben Boeckel
SMTK
Commits
3718ad23
Commit
3718ad23
authored
Oct 02, 2017
by
T.J. Corona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qtModelView: in changeEntityName(), acquire session ptr from mesh.
parent
fb8e8dc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
smtk/extension/qt/qtModelView.cxx
smtk/extension/qt/qtModelView.cxx
+12
-0
No files found.
smtk/extension/qt/qtModelView.cxx
View file @
3718ad23
...
...
@@ -1649,6 +1649,18 @@ void qtModelView::changeEntityName(const QModelIndex& idx)
{
DescriptivePhrasePtr
dp
=
this
->
getModel
()
->
getItem
(
idx
);
smtk
::
model
::
EntityRef
ent
=
dp
->
relatedEntity
();
// If there is no related entity, we may have either a meshset or mesh
// collection. We can pull an associated entity ref from either type, which
// will give us access to the underlying session.
if
(
!
ent
.
isValid
())
{
auto
collection
=
dp
->
relatedMeshCollection
()
?
dp
->
relatedMeshCollection
()
:
dp
->
relatedMesh
().
collection
();
if
(
collection
)
{
ent
=
smtk
::
model
::
EntityRef
(
collection
->
modelManager
(),
collection
->
associatedModel
());
}
}
smtk
::
model
::
SessionRef
sref
=
ent
.
owningSession
();
OperatorPtr
brOp
=
this
->
getOp
(
sref
.
session
(),
"set property"
);
if
(
!
brOp
||
!
brOp
->
specification
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment