Revision: 37096
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37096
Author: aligorith
Date: 2011-06-02 11:58:13 +0000 (Thu, 02 Jun 2011)
Log Message:
-----------
Time-Slide Fix:
Second attempt at fix for only having a single-key selected. In this
case, it just uses the start/end frame as it's min/max
Modified Paths:
--------------
branches/soc-2011-pepper/source/blender/editors/transform/transform_conversions.c
Modified:
branches/soc-2011-pepper/source/blender/editors/transform/transform_conversions.c
===================================================================
---
branches/soc-2011-pepper/source/blender/editors/transform/transform_conversions.c
2011-06-02 11:51:38 UTC (rev 37095)
+++
branches/soc-2011-pepper/source/blender/editors/transform/transform_conversions.c
2011-06-02 11:58:13 UTC (rev 37096)
@@ -3129,18 +3129,15 @@
/* check if we're supposed to be setting minx/maxx for TimeSlide */
if (t->mode == TFM_TIME_SLIDE) {
float min=999999999.0f, max=-999999999.0f;
+ int i;
- if (count > 1) {
- /* search for min/max selected values to transform */
- int i;
-
- td= t->data;
- for (i=0; i < count; i++, td++) {
- if (min > *(td->val)) min= *(td->val);
- if (max < *(td->val)) max= *(td->val);
- }
+ td= t->data;
+ for (i=0; i < count; i++, td++) {
+ if (min > *(td->val)) min= *(td->val);
+ if (max < *(td->val)) max= *(td->val);
}
- else {
+
+ if (min == max) {
/* just use the current frame ranges */
min = (float)PSFRA;
max = (float)PEFRA;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs