Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
22a469a4
Commit
22a469a4
authored
Jul 03, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbload files was always loaded as classeditor files
parent
1fdc3954
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
+23
-16
wb/lib/wb/src/wb_vrepmem.cpp
wb/lib/wb/src/wb_vrepmem.cpp
+20
-15
wb/lib/wb/src/wb_vrepmem.h
wb/lib/wb/src/wb_vrepmem.h
+3
-1
No files found.
wb/lib/wb/src/wb_vrepmem.cpp
View file @
22a469a4
...
...
@@ -86,19 +86,24 @@ void wb_vrepmem::loadWbl( const char *filename, pwr_tStatus *sts, bool reload)
return
;
}
// Insert vrepwbl in local merep to interprete the Template objects
if
(
m_merep
==
m_erep
->
merep
())
m_merep
=
new
wb_merep
(
*
m_erep
->
merep
(),
this
);
if
(
vrep
->
cid
()
==
pwr_eClass_ClassVolume
)
{
// Start the class editor
// Insert vrepwbl in local merep to interprete the Template objects
if
(
m_merep
==
m_erep
->
merep
())
m_merep
=
new
wb_merep
(
*
m_erep
->
merep
(),
this
);
wb_mvrep
*
mvrep
=
m_merep
->
volume
(
sts
,
vrep
->
vid
());
if
(
ODD
(
*
sts
))
m_merep
->
removeDbs
(
sts
,
mvrep
);
wb_mvrep
*
mvrep
=
m_merep
->
volume
(
sts
,
vrep
->
vid
());
if
(
ODD
(
*
sts
))
m_merep
->
removeDbs
(
sts
,
mvrep
);
m_merep
->
addDbs
(
sts
,
(
wb_mvrep
*
)
vrep
);
m_merep
->
addDbs
(
sts
,
(
wb_mvrep
*
)
vrep
);
// Change merep in ref volumes
m_erep
->
setRefMerep
(
m_merep
);
// Change merep in ref volumes
m_erep
->
setRefMerep
(
m_merep
);
m_classeditor
=
true
;
}
vrep
->
ref
();
m_vid
=
vrep
->
vid
();
strcpy
(
m_filename
,
filename
);
...
...
@@ -107,7 +112,6 @@ void wb_vrepmem::loadWbl( const char *filename, pwr_tStatus *sts, bool reload)
importVolume
(
*
vrep
);
vrep
->
unref
();
m_classeditor
=
true
;
*
sts
=
LDH__SUCCESS
;
}
...
...
@@ -1941,12 +1945,13 @@ bool wb_vrepmem::commit(pwr_tStatus *sts)
return
false
;
}
printPaletteFile
();
// Reload to get new template objects
clear
();
loadWbl
(
m_filename
,
sts
,
true
);
if
(
m_classeditor
)
{
printPaletteFile
();
// Reload to get new template objects
clear
();
loadWbl
(
m_filename
,
sts
,
true
);
}
return
true
;
}
...
...
wb/lib/wb/src/wb_vrepmem.h
View file @
22a469a4
...
...
@@ -237,7 +237,9 @@ class wb_vrepmem : public wb_vrep, public wb_import
public:
wb_vrepmem
(
wb_erep
*
erep
)
:
m_erep
(
erep
),
m_merep
(
erep
->
merep
()),
m_nRef
(
0
),
root_object
(
0
),
volume_object
(
0
),
m_nextOix
(
0
)
{}
volume_object
(
0
),
m_nextOix
(
0
),
m_source_vid
(
0
),
m_classeditor
(
false
),
m_ignore
(
false
)
{
strcpy
(
m_filename
,
""
);}
wb_vrepmem
(
wb_erep
*
erep
,
pwr_tVid
vid
);
~
wb_vrepmem
();
...
...
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