Welcome
Welcome to xnaquickstart

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Minor bug v0.195

If you think you've found a bad bug in the framework, post here

Moderators: Coordinators, Developers

Minor bug v0.195

Postby BastardFeckinOtter on Sun Sep 21, 2008 7:28 pm

Simple bug that had me scratching my head for a few minutes.

RenderComponent method LoadMaterial currently had hardcoded string material to load in the method rather than using the argument, hence any new renderComponents always have the same material even if you specify otherwise.
BastardFeckinOtter
Beginner
 
Posts: 22
Joined: Sun Sep 21, 2008 1:15 pm

Postby Mikee on Sun Sep 21, 2008 8:05 pm

Lordikon - here's a patch file for this bug.
Attachments
material_loader.zip
(0 Bytes) Downloaded 1 time
Mikee
Beginner
 
Posts: 40
Joined: Tue Sep 16, 2008 11:41 pm

Postby lordikon on Mon Sep 22, 2008 1:03 am

Thanks, ill get that as soon as possible
User avatar
lordikon
Administrator
 
Posts: 342
Joined: Thu Apr 03, 2008 11:26 pm
Location: Colorado

Postby Mikee on Mon Sep 22, 2008 10:52 am

Filesize: 0 Bytes

Odd ^^

Not really worth making a patch for anyway.

RenderComponent.cs Line 119

change..

Code: Select all
this.material = this.parentEntity.Game.Content.Load<Material>("Material/grass");


to..

Code: Select all
this.material = this.parentEntity.Game.Content.Load<Material>(materialPath);


;)
Mikee
Beginner
 
Posts: 40
Joined: Tue Sep 16, 2008 11:41 pm


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron