Add deletion regressions for fourteen modules, animation reset, fresh re-add and neutral rendering
这个提交包含在:
1 父节点
48b3e2d033
当前提交
5212187cc8
2 个文件已更改
+64
-3
没有与搜索条件相匹配的文件
+11
-3
@@ -23,6 +23,7 @@
|
||||
@interface DYDiagnosticManager : NSObject<PROAPIAccessing> {
|
||||
@public
|
||||
NSMutableDictionary *_values,*_custom;
|
||||
NSMutableDictionary *_keyframes;BOOL _keyframeQueryFailure;
|
||||
BOOL _duplicate;
|
||||
@public
|
||||
int _undoStarts,_undoEnds;BOOL _undoActive;
|
||||
@@ -31,6 +32,9 @@
|
||||
@interface DYInspector (DiagnosticActions)
|
||||
- (void)refresh;
|
||||
- (void)resetAll:(id)sender;
|
||||
- (void)removeTool:(NSButton *)sender;
|
||||
- (void)addModule:(NSMenuItem *)sender;
|
||||
- (NSDictionary *)presetPayload;
|
||||
@end
|
||||
@protocol DYSpiderProbe
|
||||
@property(nonatomic,copy) NSData *meshData;
|
||||
@@ -46,12 +50,15 @@
|
||||
- (void)resetSelected;
|
||||
@end
|
||||
@implementation DYDiagnosticManager
|
||||
- (instancetype)init {if((self=[super init])){_values=[NSMutableDictionary new];_custom=[NSMutableDictionary new];}return self;}
|
||||
- (void)dealloc {[_values release];[_custom release];[super dealloc];}
|
||||
- (instancetype)init {if((self=[super init])){_values=[NSMutableDictionary new];_custom=[NSMutableDictionary new];_keyframes=[NSMutableDictionary new];}return self;}
|
||||
- (void)dealloc {[_values release];[_custom release];[_keyframes release];[super dealloc];}
|
||||
- (id)apiForProtocol:(Protocol *)protocol {
|
||||
NSString *name=NSStringFromProtocol(protocol);
|
||||
return [@[@"FxParameterCreationAPI_v5",@"FxParameterRetrievalAPI_v6",@"FxParameterSettingAPI_v6",@"FxCustomParameterActionAPI_v4",@"FxUndoAPI"]containsObject:name]?self:nil;
|
||||
return [@[@"FxParameterCreationAPI_v5",@"FxParameterRetrievalAPI_v6",@"FxParameterSettingAPI_v6",@"FxCustomParameterActionAPI_v4",@"FxUndoAPI",@"FxKeyframeAPI_v3"]containsObject:name]?self:nil;
|
||||
}
|
||||
- (NSError *)channelCount:(NSUInteger *)count forParameter:(NSUInteger)pid{if(_keyframeQueryFailure)return [NSError errorWithDomain:@"probe" code:1 userInfo:nil];if(count)*count=1;return nil;}
|
||||
- (NSError *)keyframeCount:(NSUInteger *)count forParameter:(NSUInteger)pid andChannel:(NSUInteger)channel{if(count)*count=[_keyframes[@(pid)]unsignedIntegerValue];return nil;}
|
||||
- (NSError *)removeAllKeyframesForParameter:(NSUInteger)pid andChannel:(NSUInteger)channel{[_keyframes removeObjectForKey:@(pid)];return nil;}
|
||||
- (BOOL)startUndoGroup:(NSString *)title{_undoStarts++;_undoActive=YES;return YES;}
|
||||
- (BOOL)endUndoGroup{_undoEnds++;_undoActive=NO;return YES;}
|
||||
- (void)startAction:(id)sender{}
|
||||
@@ -480,6 +487,7 @@ extern "C" int DYRunDiagnostics(void) { @autoreleasepool {
|
||||
}
|
||||
#include "DYToolDiagnostics.inc.h"
|
||||
#include "DYToolInsertionDiagnostics.inc.h"
|
||||
#include "DYToolDeletionDiagnostics.inc.h"
|
||||
#include "DYFilmDiagnostics.inc.h"
|
||||
#include "DYToolTrackingDiagnostics.inc.h"
|
||||
#include "DYToolCanvasDiagnostics.inc.h"
|
||||
|
||||
在新工单中引用
屏蔽一个用户