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
d3cdd959
Commit
d3cdd959
authored
Feb 10, 2016
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge dynamic move/scale bugfix
parent
aa60d277
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+7
-5
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
d3cdd959
...
@@ -1817,7 +1817,8 @@ void GeDyn::merge( GeDyn& x)
...
@@ -1817,7 +1817,8 @@ void GeDyn::merge( GeDyn& x)
if
(
elem
->
dyn_type1
==
xelem
->
dyn_type1
&&
if
(
elem
->
dyn_type1
==
xelem
->
dyn_type1
&&
elem
->
dyn_type2
==
xelem
->
dyn_type2
&&
elem
->
dyn_type2
==
xelem
->
dyn_type2
&&
elem
->
action_type1
==
xelem
->
action_type1
&&
elem
->
action_type1
==
xelem
->
action_type1
&&
elem
->
action_type2
==
xelem
->
action_type2
)
{
elem
->
action_type2
==
xelem
->
action_type2
&&
elem
->
instance
==
xelem
->
instance
)
{
// Element exists in both, use element in x, i.e. remove current element
// Element exists in both, use element in x, i.e. remove current element
if
(
!
prev
)
if
(
!
prev
)
elements
=
elem
->
next
;
elements
=
elem
->
next
;
...
@@ -5820,9 +5821,13 @@ int GeMove::connect( grow_tObject object, glow_sTraceData *trace_data)
...
@@ -5820,9 +5821,13 @@ int GeMove::connect( grow_tObject object, glow_sTraceData *trace_data)
int
sts
;
int
sts
;
double
ur_x
,
ur_y
;
double
ur_x
,
ur_y
;
move_x_p
=
0
;
move_y_p
=
0
;
scale_x_p
=
0
;
scale_y_p
=
0
;
move_x_size
=
4
;
move_x_size
=
4
;
move_x_type
=
pwr_eType_Float32
;
move_x_type
=
pwr_eType_Float32
;
move_x_p
=
0
;
move_x_db
=
dyn
->
parse_attr_name
(
move_x_attribute
,
parsed_name
,
move_x_db
=
dyn
->
parse_attr_name
(
move_x_attribute
,
parsed_name
,
&
inverted
,
&
move_x_type
,
&
move_x_size
);
&
inverted
,
&
move_x_type
,
&
move_x_size
);
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
...
@@ -5832,7 +5837,6 @@ int GeMove::connect( grow_tObject object, glow_sTraceData *trace_data)
...
@@ -5832,7 +5837,6 @@ int GeMove::connect( grow_tObject object, glow_sTraceData *trace_data)
}
}
move_y_size
=
4
;
move_y_size
=
4
;
move_y_type
=
pwr_eType_Float32
;
move_y_type
=
pwr_eType_Float32
;
move_y_p
=
0
;
move_y_db
=
dyn
->
parse_attr_name
(
move_y_attribute
,
parsed_name
,
move_y_db
=
dyn
->
parse_attr_name
(
move_y_attribute
,
parsed_name
,
&
inverted
,
&
move_y_type
,
&
move_y_size
);
&
inverted
,
&
move_y_type
,
&
move_y_size
);
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
...
@@ -5842,7 +5846,6 @@ int GeMove::connect( grow_tObject object, glow_sTraceData *trace_data)
...
@@ -5842,7 +5846,6 @@ int GeMove::connect( grow_tObject object, glow_sTraceData *trace_data)
}
}
scale_x_size
=
4
;
scale_x_size
=
4
;
scale_x_type
=
pwr_eType_Float32
;
scale_x_type
=
pwr_eType_Float32
;
scale_x_p
=
0
;
scale_x_db
=
dyn
->
parse_attr_name
(
scale_x_attribute
,
parsed_name
,
scale_x_db
=
dyn
->
parse_attr_name
(
scale_x_attribute
,
parsed_name
,
&
inverted
,
&
scale_x_type
,
&
scale_x_size
);
&
inverted
,
&
scale_x_type
,
&
scale_x_size
);
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
...
@@ -5852,7 +5855,6 @@ int GeMove::connect( grow_tObject object, glow_sTraceData *trace_data)
...
@@ -5852,7 +5855,6 @@ int GeMove::connect( grow_tObject object, glow_sTraceData *trace_data)
}
}
scale_y_size
=
4
;
scale_y_size
=
4
;
scale_y_type
=
pwr_eType_Float32
;
scale_y_type
=
pwr_eType_Float32
;
scale_y_p
=
0
;
scale_y_db
=
dyn
->
parse_attr_name
(
scale_y_attribute
,
parsed_name
,
scale_y_db
=
dyn
->
parse_attr_name
(
scale_y_attribute
,
parsed_name
,
&
inverted
,
&
scale_y_type
,
&
scale_y_size
);
&
inverted
,
&
scale_y_type
,
&
scale_y_size
);
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
...
...
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