Skip to content

Commit

Permalink
Cleanup and version number bump
Browse files Browse the repository at this point in the history
Release 0.2.10, here we come.
  • Loading branch information
cochrane committed Oct 3, 2019
1 parent aca2acb commit 392321b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
13 changes: 10 additions & 3 deletions GLLara.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@
attributes = {
CLASSPREFIX = GLL;
LastTestingUpgradeCheck = 0620;
LastUpgradeCheck = 0930;
LastUpgradeCheck = 1100;
ORGANIZATIONNAME = "Torsten Kammer";
TargetAttributes = {
525ACD4615F0F1A700534E7D = {
Expand All @@ -1680,10 +1680,9 @@
};
buildConfigurationList = 525ACD4115F0F1A700534E7D /* Build configuration list for PBXProject "GLLara" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
de,
Base,
Expand Down Expand Up @@ -2412,6 +2411,7 @@
523DE0E91604A5ED00BB9F61 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "-";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "parseItems/parseItems-Prefix.pch";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -2421,6 +2421,7 @@
523DE0EA1604A5ED00BB9F61 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "-";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "parseItems/parseItems-Prefix.pch";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -2538,8 +2539,11 @@
buildSettings = {
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 11;
DEVELOPMENT_TEAM = MXAKMKWG34;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = "GLLara/GLLara-Info.plist";
MARKETING_VERSION = 0.2.10;
PRODUCT_BUNDLE_IDENTIFIER = "de.ferroequinologist.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
Expand All @@ -2553,8 +2557,11 @@
buildSettings = {
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 11;
DEVELOPMENT_TEAM = MXAKMKWG34;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = "GLLara/GLLara-Info.plist";
MARKETING_VERSION = 0.2.10;
PRODUCT_BUNDLE_IDENTIFIER = "de.ferroequinologist.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
Expand Down
19 changes: 10 additions & 9 deletions GLLara/GLLCameraTarget.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ @interface GLLCameraTarget ()

@property (nonatomic, assign, readwrite) vec_float4 position;
- (void)_updatePosition;
- (void)_registerObserver;

@end

Expand All @@ -40,23 +41,17 @@ + (NSSet *)keyPathsForValuesAffectingDisplayName
- (void)awakeFromFetch
{
[super awakeFromFetch];
if (!didRegister)
[self addObserver:self forKeyPath:@"bones" options:NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld context:contextMarker];
didRegister = YES;
[self _registerObserver];
}
- (void)awakeFromInsert
{
[super awakeFromInsert];
if (!didRegister)
[self addObserver:self forKeyPath:@"bones" options:NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld context:contextMarker];
didRegister = YES;
[self _registerObserver];
}
- (void)awakeFromSnapshotEvents:(NSSnapshotEventType)flags
{
[super awakeFromSnapshotEvents:flags];
if (!didRegister)
[self addObserver:self forKeyPath:@"bones" options:NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld context:contextMarker];
didRegister = YES;
[self _registerObserver];
}
- (void)willTurnIntoFault
{
Expand Down Expand Up @@ -104,4 +99,10 @@ - (void)_updatePosition
[self didChangeValueForKey:@"position"];
}

- (void)_registerObserver {
if (!didRegister)
[self addObserver:self forKeyPath:@"bones" options:NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld context:contextMarker];
didRegister = YES;
}

@end
8 changes: 8 additions & 0 deletions GLLara/GLLItemMeshState.m
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@ - (void)unload
}

- (NSComparisonResult)compareTo:(GLLItemMeshState *)other {
// Main comparison method for sorting objects (states) to minimize state
// switching.
// For most attributes (except Alpha) the order is completely arbitrary.
// What matters is in what order they're checked: At the front should be
// state changes that are expensive, at the rear ones that are cheap because
// they will happen an awful lot. The current order is probably not yet
// optimal.

BOOL selfAlpha = self.itemMesh.isUsingBlending;
BOOL otherAlpha = other.itemMesh.isUsingBlending;

Expand Down
4 changes: 2 additions & 2 deletions GLLara/GLLara-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.2.9</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>10</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.graphics-design</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 392321b

Please sign in to comment.