Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by brad_ict · May 07, 2011 at 08:06 AM · materialstreemergesvn

Why are merged materials modified when Unity opens?

We're merging materials from an SVN branch into the trunk. The materials in the trunk are modified by the merged branch materials and we commit this change to the trunk so all the files are up to date in the trunk and unmodified locally. We then open the trunk project and Unity modifies the merged materials. We aren't saving or modifying anything directly, we just open the project and the materials are changed on disk. We have version control configured correctly and have meta files committed, along with the Library files indicated in the Unity docs and nothing else. Here is the step by step workflow:

The material test.mat exists in both the branch and trunk.

Renamed test.mat in branch to test_renamed.mat

Merge trunk into branch. Tree Conflict between test.mat and test_renamed.mat

Right click tree conflict and choose Edit Conflicts. Choose Resolve (no choice for local or repo).

Updated branch.

Committed branch.

Updated trunk and branch.

Trunk > merge. Reintegrate branch -> trunk.

test_renamed.mat is added. test.mat is deleted.

Commit changes.

Open trunk project in Unity.

Material is correct. Dont modify or save anything.

Close Unity.

Check for modifications on trunk and test_renamed.mat file is changed.Why?????

Revert test_renamed.mat in trunk

Opened trunk project and get the same modification to the material again..

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by brad_ict · May 12, 2011 at 04:50 AM

After doing a binary diff on the material files we realized the name of the material is written inside the file when Unity imports the material. We simply SVN renamed the material in the branch with Unity closed to be safe, but this meant that when we re-integrated this material into the trunk and opened the trunk Unity imported the material and wrote the new name inside the file. Seems like the solution is to open and close your project before doing any commits.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Where to find/How to make tree materials 1 Answer

Merging Textures 4 Answers

Trees' leaves showing up as squares? 0 Answers

How to deal with multiple users working on one scene? 1 Answer

SmartMerge with TortoiseSVN 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges