We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b70689d commit 6b7068aCopy full SHA for 6b7068a
ios/components/ARModelManager.m
@@ -22,7 +22,11 @@ @implementation ARModelManager
22
// we need to do the model loading in its own queue, otherwise it can block, so that react-to-native-calls get out of order
23
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
24
NSDictionary *model = property[@"model"];
25
- CGFloat scale = [model[@"scale"] floatValue];
+ CGFloat scale = 1;
26
+ if(model[@"scale"]) {
27
+ // deprecated
28
+ scale = [model[@"scale"] floatValue];
29
+ }
30
31
NSString *path = [NSString stringWithFormat:@"%@", model[@"file"]];
32
//NSLog(@"mounting model: %@ %@", node.name, path);
0 commit comments