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
868f5cff
Commit
868f5cff
authored
Jul 08, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copyObject couldn't copy object from other volume
parent
efbb2aad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
wb/lib/wb/src/wb_session.cpp
wb/lib/wb/src/wb_session.cpp
+29
-1
No files found.
wb/lib/wb/src/wb_session.cpp
View file @
868f5cff
...
...
@@ -131,10 +131,38 @@ wb_object wb_session::copyObject(wb_object o, wb_destination d, wb_name name)
m_sts
=
triggAnteAdopt
(
parent
,
o
.
cid
());
if
(
evenSts
())
throw
wb_error
(
sts
());
orep
=
m_vrep
->
copyObject
(
&
m_sts
,
(
wb_orep
*
)
o
,
d
,
name
);
if
(
m_vrep
->
vid
()
==
o
.
vid
())
{
orep
=
m_vrep
->
copyObject
(
&
m_sts
,
(
wb_orep
*
)
o
,
d
,
name
);
orep
->
ref
();
}
else
{
wb_cdef
c
=
cdef
(
o
.
cid
());
orep
=
m_vrep
->
createObject
(
&
m_sts
,
c
,
d
,
name
);
orep
->
ref
();
wb_attribute
rba
(
o
.
sts
(),
(
wb_orep
*
)
o
,
"RtBody"
);
if
(
rba
)
{
void
*
p
=
rba
.
value
();
wb_attribute
rban
(
m_sts
,
orep
,
"RtBody"
);
writeAttribute
(
rban
,
p
);
}
wb_attribute
dba
(
o
.
sts
(),
(
wb_orep
*
)
o
,
"DevBody"
);
if
(
dba
)
{
void
*
p
=
dba
.
value
();
wb_attribute
dban
(
m_sts
,
orep
,
"DevBody"
);
writeAttribute
(
dban
,
p
);
}
wb_attribute
sba
(
o
.
sts
(),
(
wb_orep
*
)
o
,
"SysBody"
);
if
(
sba
)
{
void
*
p
=
sba
.
value
();
wb_attribute
sban
(
m_sts
,
orep
,
"SysBody"
);
writeAttribute
(
sban
,
p
);
}
}
m_srep
->
update
();
wb_object
onew
=
wb_object
(
m_sts
,
orep
);
orep
->
unref
();
ldh_sEvent
*
ep
=
m_srep
->
eventStart
(
onew
.
oid
(),
ldh_eEvent_ObjectCreated
);
m_srep
->
eventNewFamily
(
ep
,
onew
);
triggPostCreate
(
onew
);
...
...
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