File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 212212
213213 // Opacity/Color propagates into children that conform to if cascadeOpacity/cascadeColor is enabled.
214214 BOOL _cascadeColorEnabled, _cascadeOpacityEnabled;
215-
216- // contentSize changes don't propogate to children unless cascadeContentSize is enabled.
217- BOOL _cascadeContentSizeEnabled;
218215
219216@private
220217 // Physics Body.
389386// / -----------------------------------------------------------------------
390387
391388/* * The untransformed size of the node in the unit specified by contentSizeType property.
392- The contentSize remains the same regardless of whether the node is scaled or rotated. Changes to contentSize will not affect
393- children unless the property cascadeContentSize is enabled.
389+ The contentSize remains the same regardless of whether the node is scaled or rotated.
394390 @see contentSizeInPoints
395- @see contentSizeType
396- @see cascadeContentSizeEnabled
397- */
391+ @see contentSizeType */
398392@property (nonatomic ,readwrite ,assign ) CGSize contentSize;
399393
400394/* * The untransformed size of the node in Points. The contentSize remains the same regardless of whether the node is scaled or rotated.
410404 @see contentSizeInPoints */
411405@property (nonatomic ,readwrite ,assign ) CCSizeType contentSizeType;
412406
413- /* *
414- cascadeContentSizeEnabled causes changes to this node's contentSize to cascade down to it's children.
415- @see contentSize
416- */
417- @property (nonatomic , getter = isCascadeContentSizeEnabled) BOOL cascadeContentSizeEnabled;
418-
419407/* *
420408 * Invoked automatically when the OS view has been resized.
421409 *
Original file line number Diff line number Diff line change @@ -187,7 +187,6 @@ -(id) init
187187 _displayColor = _color = [CCColor whiteColor ].ccColor4f ;
188188 _cascadeOpacityEnabled = NO ;
189189 _cascadeColorEnabled = NO ;
190- _cascadeContentSizeEnabled = NO ;
191190 }
192191
193192 return self;
@@ -400,11 +399,12 @@ - (void) contentSizeChanged
400399 {
401400 [child parentsContentSizeChanged ];
402401 }
402+
403403}
404404
405405- (void ) parentsContentSizeChanged
406406 {
407- if (!CCSizeTypeIsBasicPoints (_contentSizeType) && (_cascadeContentSizeEnabled == YES ) )
407+ if (!CCSizeTypeIsBasicPoints (_contentSizeType))
408408 {
409409 [self contentSizeChanged ];
410410 }
@@ -1679,7 +1679,6 @@ - (BOOL)hitTestWithWorldPos:(CGPoint)pos
16791679
16801680@synthesize cascadeColorEnabled=_cascadeColorEnabled;
16811681@synthesize cascadeOpacityEnabled=_cascadeOpacityEnabled;
1682- @synthesize cascadeContentSizeEnabled=_cascadeContentSizeEnabled;
16831682
16841683-(CGFloat) opacity
16851684{
You can’t perform that action at this time.
0 commit comments