Created
April 5, 2013 02:52
-
-
Save pingortle/5316233 to your computer and use it in GitHub Desktop.
Bug fixes for Engine Nine 1.6 as suggested by yufeih.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Sets the mask textures of the material group. | |
/// </summary> | |
public static void SetMaskTextures(MaterialGroup materialGroup, System.Collections.IList value) | |
{ | |
if (value == null) | |
throw new ArgumentNullException("value"); | |
AttachablePropertyServices.SetProperty(materialGroup, MaskTexturesProperty, value); | |
MaterialPartCollection materialParts = materialGroup.MaterialParts as MaterialPartCollection; | |
if (materialGroup != null && materialParts != null) | |
materialParts.Bind(materialGroup); | |
} | |
/// <summary> | |
/// Sets the mask texture scale of the material group. | |
/// </summary> | |
public static void SetMaskTextureScale(MaterialGroup materialGroup, Vector2 value) | |
{ | |
AttachablePropertyServices.SetProperty(materialGroup, MaskTextureScaleProperty, value); | |
MaterialPartCollection materialParts = materialGroup.MaterialParts as MaterialPartCollection; | |
if (materialGroup != null && materialParts != null) | |
materialParts.Bind(materialGroup); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works!